<template>
  <div class="goods">
    <goods-list-item v-for="item in goods" :key="item.id" :goodsitem="item" />
    <div class="fix-clear"></div>
  </div>
</template>

<script>
import GoodsListItem from "./GoodsListItem";
export default {
  components: {
    GoodsListItem
  },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style lang="less" scoped>
.goods{
background-color: #eee;
::after{
  clear: both;
  content: '';
  display: block;
  width: 0;
  height: 0;
  visibility: hidden;
}
}
</style>